<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFTextView Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#properties">Properties</a> &#124;
<a href="interface_h_f_text_view-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HFTextView Class Reference<div class="ingroups"><a class="el" href="group__highlevel.html">High Level</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A high-level view class analagous to NSTextView.  
 <a href="interface_h_f_text_view.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for HFTextView:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_h_f_text_view.png" usemap="#HFTextView_map" alt=""/>
  <map id="HFTextView_map" name="HFTextView_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a08baf8fb71edae71ab86675e5cef3173"><td class="memItemLeft" align="right" valign="top">id&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#a08baf8fb71edae71ab86675e5cef3173">delegate</a></td></tr>
<tr class="memdesc:a08baf8fb71edae71ab86675e5cef3173"><td class="mdescLeft">&#160;</td><td class="mdescRight">The delegate, which may implement the methods in <a class="el" href="protocol_h_f_text_view_delegate-p.html" title="Delegate methods for HFTextView. ">HFTextViewDelegate</a>. Initially nil.  <a href="#a08baf8fb71edae71ab86675e5cef3173">More...</a><br /></td></tr>
<tr class="separator:a08baf8fb71edae71ab86675e5cef3173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a546bfc05654c23960a5b5ded1e35d447"><td class="memItemLeft" align="right" valign="top">NSData *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#a546bfc05654c23960a5b5ded1e35d447">data</a></td></tr>
<tr class="separator:a546bfc05654c23960a5b5ded1e35d447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessing MVC components</div></td></tr>
<tr class="memitem:a9d04a8ac893159d65498c1c0b0533d31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_h_f_controller.html">HFController</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#a9d04a8ac893159d65498c1c0b0533d31">controller</a></td></tr>
<tr class="memdesc:a9d04a8ac893159d65498c1c0b0533d31"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="interface_h_f_controller.html" title="A central class that acts as the controller layer for HexFiend.framework. ">HFController</a> for the receiver. Useful for adding or removing HFRepresenters from the text view at runtime. An <a class="el" href="interface_h_f_text_view.html" title="A high-level view class analagous to NSTextView. ">HFTextView</a> comes with its own <a class="el" href="interface_h_f_controller.html" title="A central class that acts as the controller layer for HexFiend.framework. ">HFController</a>, but you can replace it.  <a href="#a9d04a8ac893159d65498c1c0b0533d31">More...</a><br /></td></tr>
<tr class="separator:a9d04a8ac893159d65498c1c0b0533d31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1844eea104774e5f1840b7d663345b58"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_h_f_layout_representer.html">HFLayoutRepresenter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#a1844eea104774e5f1840b7d663345b58">layoutRepresenter</a></td></tr>
<tr class="memdesc:a1844eea104774e5f1840b7d663345b58"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="interface_h_f_layout_representer.html" title="An HFRepresenter responsible for arranging the views of other HFRepresenters attached to the same HFC...">HFLayoutRepresenter</a> for the receiver. An <a class="el" href="interface_h_f_text_view.html" title="A high-level view class analagous to NSTextView. ">HFTextView</a> comes with its own <a class="el" href="interface_h_f_layout_representer.html" title="An HFRepresenter responsible for arranging the views of other HFRepresenters attached to the same HFC...">HFLayoutRepresenter</a>, but you can replace it.  <a href="#a1844eea104774e5f1840b7d663345b58">More...</a><br /></td></tr>
<tr class="separator:a1844eea104774e5f1840b7d663345b58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea80bb47bbffaa395493c5237db4b578"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_h_f_byte_array.html">HFByteArray</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#aea80bb47bbffaa395493c5237db4b578">byteArray</a></td></tr>
<tr class="memdesc:aea80bb47bbffaa395493c5237db4b578"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="interface_h_f_byte_array.html" title="The principal Model class for HexFiend&#39;s MVC architecture. ">HFByteArray</a> for the receiver. This is equivalent to <code>[[self controller] byteArray]</code>.  <a href="#aea80bb47bbffaa395493c5237db4b578">More...</a><br /></td></tr>
<tr class="separator:aea80bb47bbffaa395493c5237db4b578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Display configuration</div></td></tr>
<tr class="memitem:ae72dcd17255a7ea08d9afac1ef7ac011"><td class="memItemLeft" align="right" valign="top">NSArray *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#ae72dcd17255a7ea08d9afac1ef7ac011">backgroundColors</a></td></tr>
<tr class="memdesc:ae72dcd17255a7ea08d9afac1ef7ac011"><td class="mdescLeft">&#160;</td><td class="mdescRight">The array of background colors for the receiver.  <a href="#ae72dcd17255a7ea08d9afac1ef7ac011">More...</a><br /></td></tr>
<tr class="separator:ae72dcd17255a7ea08d9afac1ef7ac011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb285a81aa81b206b05ba8d3264ff28"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_h_f_text_view.html#a0cb285a81aa81b206b05ba8d3264ff28">bordered</a></td></tr>
<tr class="memdesc:a0cb285a81aa81b206b05ba8d3264ff28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the receiver draws a border.  <a href="#a0cb285a81aa81b206b05ba8d3264ff28">More...</a><br /></td></tr>
<tr class="separator:a0cb285a81aa81b206b05ba8d3264ff28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="interface_h_f_text_field.html" title="A high-level view class that is analagous to NSTextField. ">HFTextField</a> encapsulates a <a class="el" href="interface_h_f_controller.html" title="A central class that acts as the controller layer for HexFiend.framework. ">HFController</a> and HFRepresenters into a single "do it all" NSControl analagous to NSTextView. </p>
</div><h2 class="groupheader">Property Documentation</h2>
<a id="a9d04a8ac893159d65498c1c0b0533d31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d04a8ac893159d65498c1c0b0533d31">&sect;&nbsp;</a></span>controller</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_h_f_controller.html">HFController</a>*) controller</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1844eea104774e5f1840b7d663345b58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1844eea104774e5f1840b7d663345b58">&sect;&nbsp;</a></span>layoutRepresenter</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_h_f_layout_representer.html">HFLayoutRepresenter</a>*) layoutRepresenter</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aea80bb47bbffaa395493c5237db4b578"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea80bb47bbffaa395493c5237db4b578">&sect;&nbsp;</a></span>byteArray</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_h_f_byte_array.html">HFByteArray</a>*) byteArray</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae72dcd17255a7ea08d9afac1ef7ac011"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae72dcd17255a7ea08d9afac1ef7ac011">&sect;&nbsp;</a></span>backgroundColors</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSArray*) backgroundColors</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">copy</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the arry of background colors for the receiver. The background colors are used in sequence to draw each row. </p>

</div>
</div>
<a id="a0cb285a81aa81b206b05ba8d3264ff28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cb285a81aa81b206b05ba8d3264ff28">&sect;&nbsp;</a></span>bordered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) bordered</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a08baf8fb71edae71ab86675e5cef3173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08baf8fb71edae71ab86675e5cef3173">&sect;&nbsp;</a></span>delegate</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (id) delegate</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a546bfc05654c23960a5b5ded1e35d447"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a546bfc05654c23960a5b5ded1e35d447">&sect;&nbsp;</a></span>data</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSData*) data</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">copy</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Access the contents of the <a class="el" href="interface_h_f_text_view.html" title="A high-level view class analagous to NSTextView. ">HFTextView</a>'s <a class="el" href="interface_h_f_byte_array.html" title="The principal Model class for HexFiend&#39;s MVC architecture. ">HFByteArray</a> as an NSData. When setting, the data is copied via the <code>-copy</code> message, so prefer to pass an immutable <code>NSData</code> when possible. When getting, the NSData proxies an <a class="el" href="interface_h_f_byte_array.html" title="The principal Model class for HexFiend&#39;s MVC architecture. ">HFByteArray</a>, and therefore it is usually more efficient than naively copying all of the bytes. However, access to the <code>-byte</code> method will necessitate copying, a potentially expensive operation. Furthermore, the NSData API is inherently 32 bit in a 32 bit process. Lastly, there is no protection if the backing file for the data disappears.</p>
<p>For those reasons, this should only be used when its convenience outweighs the downside (e.g. some bindings scenarios). For most use cases, it is better to use the <code>-byteArray</code> method above. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_h_f_text_view_8h_source.html">HFTextView.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
